//
//  RCNetWorking.h
//  AFNetWorking
//
//  Created by Marx on 15/10/20.
//  Copyright © 2015年 任成. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^JSONBLOCK)(id result);
typedef void(^ERRORBLOCK)(id error);
@interface RCNetWorking : NSObject
+ (void)getUrl:(NSString *)urlStr
        cookie:(NSString *)cookie
        Result:(JSONBLOCK)block;

+ (void)postUrl:(NSString *)url
         parame:(id)parame
         cookie:(NSString *)cookie
        bodyStr:(NSString *)bodyStr
         result:(JSONBLOCK)block;
+ (NSDictionary *)dictionaryWithString:(NSString *)str;
//AFNetWorking
+ (void)GETDataWithAFN:(NSString *)url
                cookie:(NSString *)cookie
            completion:(JSONBLOCK)block
                 error:(ERRORBLOCK)errorblock;

+ (void)networkReachabilityStatus:(JSONBLOCK)block;
@end
